package com.zline.foodraise.entity;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * Created by heshantao on 15/7/10.
 * 城市
 */
@DatabaseTable(tableName = "city")
public class City {
    @DatabaseField(generatedId = true)
    private int id;
    @DatabaseField
    private int cityId;
    @DatabaseField
    private String cityName;
    @DatabaseField
    private int provinceId;
    @DatabaseField
    private int showOrder;

    public City() {
    }

    public City(int cityId, String cityName, int provinceId, int showOrder) {
        this.cityId = cityId;
        this.cityName = cityName;
        this.provinceId = provinceId;
        this.showOrder = showOrder;
    }

    public int getCityId() {
        return cityId;
    }

    public void setCityId(int cityId) {
        this.cityId = cityId;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public int getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(int provinceId) {
        this.provinceId = provinceId;
    }

    public int getShowOrder() {
        return showOrder;
    }

    public void setShowOrder(int showOrder) {
        this.showOrder = showOrder;
    }

    @Override
    public String toString() {
        return "City [cityId=" + cityId + ", cityName=" + cityName + ", provinceId=" + provinceId
                + "]";
    }
}
